package dashboard.databll;

import com.bj58.ecdata.calc.dbservice.service.BusslineEnum;
import com.bj58.ecdata.calc.dbservice.service.PlatformEnum;
import com.bj58.ecdata.calc.dbservice.service.TrackService;

import dashboard.service.SCFClient;

public class TrackServiceBLL {

	private static TrackService trackService = SCFClient.getRemoteService(TrackService.class);

	public static String ping() {
		return trackService.ping();
	}

	public static String getDailySum() {
		return trackService.getDailySum();
	}

	public static String getDailySum(PlatformEnum platform, BusslineEnum bussline) {
		return trackService.getDailySum(platform, bussline);
	}

	/**
	 * @param time
	 *            0 返回最近一小时数据
	 */
	public static String getData(String type, PlatformEnum platform, BusslineEnum bussline, long time) {
		return trackService.getData(type, platform, bussline, time);
	}

	public static String getDataTodayHourly(String type, PlatformEnum platform, BusslineEnum bussline) {
		return trackService.getDataTodayHourly(type, platform, bussline);
	}

	public static String getDataYesterdayHourly(String type, PlatformEnum platform, BusslineEnum bussline) {
		return trackService.getDataYesterdayHourly(type, platform, bussline);
	}

}
